//统一管理用户相关接口
import http from '@/utils/http'

//项目用户相关的请求地址
let API = {
  LOGIN_URL:'/login/',
  USERINFO_URL:'/user/info/',
  LOGOUT_URL:'/user/logout/',
}

//登录接口
export const reqLogin = (data) => http.post(API.LOGIN_URL, data)
//获取用户信息
export const reqUserInfo = () => http.get(API.USERINFO_URL)
//退出登录
export const reqLogout = () => http.post(API.LOGOUT_URL)